Accessibility

Change the Fireworks mm_menu.js File

If you are using Fireworks MX to create your Pop-up Menus, there is one line in the mm_menu.js file that you will need to edit to enable the scrolling menus to work in Netscape 4.x browsers. At this point, you should also have completed the steps in the TechNote How to make Pop-up Menus from Fireworks MX appear in a different frame (TechNote 16648), and have already copied the function mmLoadMenus to the top of the mm_menu.js file, just above the function "menu."

In the next steps, you'll specify in Netscape where to show the menus by passing a path, much like a URL to the overall frameset by referencing "parent", the frame "content", and the various objects that the code uses to align the menus in the frame (images, links and anchors).

  1. In Dreamweaver, choose File > Open and browse to the mm_menu.js file in your site directory. (By default, your mm_menu.js file is located in the same location as your exported Fireworks HTML file; if you've changed the JavaScript call in the HTML, the location may be different. Browse to your mm_menu.js file appropriately.)
  2. Locate the function MM_showMenu. It should be near line 520. Your code should look something similar to the following:

    function MM_showMenu(menu, x, y, child, imgname) {
    if (!window.mmWroteMenu) return;
    MM_clearTimeout();
    if (menu) {
    var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];
    x = moveXbySlicePos (x, obj);
    y = moveYbySlicePos (y, obj);
    }
  3. Change the line that starts with "var obj..." from:

    var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];

    to:

    var obj = FIND(imgname) || parent.content.document.images[imgname] || parent.content.document.links[imgname] || parent.content.document.anchors[imgname];
  4. This enables the menus to appear in the frame of the frameset named "content." If your frame has a different name, substitute your frame's name for "content."
  5. Save and close the mm_menu.js file after you have made these changes.

Next, you'll edit the HTML containing the Nav Bar so that it calls the function flevShowFramedFWPopup, which will call the MM_showMenu function in the JS file, much like the machine I described at the beginning of this tutorial.